
/**
 * @brief
 *
 * @version  0.1
 * @author   wuxingchuang
 * @date     2024.11.23
 *          _
 *      ___| |__   ___ _ __   __ _  ___  _ __   __ _
 *     / __| '_ \ / _ \ '_ \ / _` |/ _ \| '_ \ / _` |
 *     \__ \ | | |  __/ | | | (_| | (_) | | | | (_| |
 *     |___/_| |_|\___|_| |_|\__, |\___/|_| |_|\__, |
 *                           |___/             |___/
 * @copyright (c) 2024 by 神工仿真, All Rights Reserved.
 */
#pragma once
#include "DataStructure/Common/Id.h"
#include "DataStructure/Common/Real.h"
#include "DataStructure/Common/SGObject.h"

SG_DATASTRUCTURE_FEM_NAMESPACE_OPEN

struct TABLED5Data : public SGObject
{
    struct ENTRIESData
    {
        SG::DataStructure::Common::Real m_XI  = 0.0;  ///< X value of function for TID
        SG::DataStructure::Common::Id   m_TID = 0;    ///< TABLEDi ID for function vs y for given XI
    };

    SG::DataStructure::Common::Id m_domainId = 0;     ///<

    std::vector<ENTRIESData> m_ENTRIESList;
};

///@{ @brief operator override
DECLSPEC bool operator== (const TABLED5Data::ENTRIESData& val1, const TABLED5Data::ENTRIESData& val2);

DECLSPEC bool operator== (const TABLED5Data& val1, const TABLED5Data& val2);
///}@
SG_DATASTRUCTURE_FEM_NAMESPACE_CLOSE
